Proxying the protocol...
am 09.05.2003 18:43:30 von Matt GregoryThis is a multi-part message in MIME format.
------=_NextPart_000_0050_01C31628.986F26B0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Hey all. I have been researching and experimenting with this and have
not yet found a way to do it with either mod_rewrite or mod_proxy.
I have about 25 virtual hosts all with their own ssl keys. I want to
proxy them all through apache to JBoss and then have JBoss proxy content
from Zope.
The problem I am having is that I have a portlet-streamer tool which I
wrote and open-sourced which will rewrite the content links from zope
according to a configuration file which works very similar to
mod_rewrite (which I used as a guide). I have no problems except when I
try to determine what the original protocol was.
When using mod_proxy, I can use apache 2.0 and use the ProxyPreserveHost
directive to get the host from the request, or I can simply pull it from
the x-forward-host header property using my rewrite tool. Unfortunately
nothing in the request or the header tells me if the request was via
http or via https.
Is there any way to tell the target host the original protocol via a
header variable or a directive?
------=_NextPart_000_0050_01C31628.986F26B0
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
charset=3Dus-ascii">
style=3D'tab-interval:.5in'>
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>H
face=3DArial>
style=3D'font-size:10.0pt;font-family:Arial'>ey all.
style=3D'mso-spacerun:yes'> I have been researching and
experimenting with this and have not yet found a way to do it with =
either
mod_rewrite or mod_proxy.
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>I have about 25 virtual hosts all with their own ssl
keys. I want to proxy them =
all
through apache to JBoss and then have JBoss proxy content from =
Zope.
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>The problem I am having is that I have a =
portlet-streamer
tool which I wrote and open-sourced which will rewrite the content links =
from
zope according to a configuration file which works very similar to =
mod_rewrite
(which I used as a guide). =
I have
no problems except when I try to determine what the original protocol =
was.
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>When using mod_proxy, I can use apache 2.0 and use =
the
ProxyPreserveHost directive to get the host from the request, or I can =
simply
pull it from the x-forward-host header property using my rewrite =
tool.
style=3D'mso-spacerun:yes'> Unfortunately nothing in the =
request or
the header tells me if the request was via http or via =
https.
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>Is there any way to tell the target host the original
protocol via a header variable or a =
directive?
------=_NextPart_000_0050_01C31628.986F26B0--